﻿using System.Configuration;

namespace NCMIS.Provider
{
    /// <summary>
    /// Represents the VersioningProvider section within the application's configuration file.
    /// </summary>
    public class VersioningProviderConfiguration : ConfigurationSection
    {
        [ConfigurationProperty("providers")]
        public ProviderSettingsCollection Providers
        {
            get
            {
                return (ProviderSettingsCollection)base["providers"];
            }
        }

        /// <summary>
        /// Gets or sets the default provider.
        /// </summary>
        [ConfigurationProperty("default", DefaultValue = "SampleVersioningProvider")]
        public string Default
        {
            get { return (string)base["default"]; }
            set { base["default"] = value; }
        }
    }
}
